package cn.sxt.oop;

/**
 * 测试局部内部类
 * 局部内部类：作用范围只在方法里面
 */
public class TestPartInnerClass{
    public void show(){
        class Inner{
            public void showInner(){
                System.out.println("showInner()");
            }
        }
        new Inner().showInner();
    }

    public static void main(String[] args) {
        TestPartInnerClass testPartInnerClass = new TestPartInnerClass();
        testPartInnerClass.show();
    }
}
